package com.woniuxy01;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 作者
 * @create 2025-10-30 11:45
 */

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Student {
    String name;
    int age;
    static String schoolAddress;


    public void testNotStatic01(){
        System.out.println("testNotStatic01");
        testNotStatic02();
        testStatic01();
        this.age=1;
        schoolAddress="xxx";
    }

    public void testNotStatic02(){
        System.out.println("testNotStatic02");
    }


    public static void testStatic01(){
        System.out.println("testStatic01");
        testStatic02();
    }
    public static void testStatic02(){
        System.out.println("testStatic02");
//        testNotStatic01();
        Student stuxxx = new Student();
        stuxxx.testNotStatic02();
        stuxxx.age=1;
//        this.age=111;
        schoolAddress="xxx";
    }

}
